#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
char* sstrstr(char* a, char* b)
{
	int i, j=0,x,y;
	for (i = 0; a[i] != '\0'; i++)
	{
		if (a[i] == b[0])
		{
			for (x = i,y = 0;; x++, y++)
			{
				if ('\0' == b[y])
					return a + i;
				if (a[x] != b[y])
					break;
			}
		}
	}
	return NULL;
}
int mainmnsstr()
{
	char a[] = "sihsrerehaehrte";
	char b[] = "aeh";
	printf("%zd\n",(sstrstr(a, b)-a));
	return 0;
}